import { RouteRecordRaw } from 'vue-router'

export const Boxrouter: Array<RouteRecordRaw> = [
  {
    path: '/box',
    name: 'box',
    // 路由元信息
    meta: {
      title: '仓库管理'
    },
    component: () => import('../../page/Box-page/BoxIndex.vue'),
    children: [
      {
        path: 'echars',
        name: 'echars',
        meta: {
          title: '库存台账'
        },
        component: () => import('../../page/Box-page/EcharsLayer.vue')
      },
      {
        path: 'warehousingManagement',
        name: 'warehousingManagement',
        meta: {
          title: '入库管理'
        },
        component: () => import('../../page/Box-page/WarehousingManagement.vue')
      },
      {
        path: 'deliveryManagement',
        name: 'deliveryManagement',
        meta: {
          title: '出库管理'
        },
        component: () => import('../../page/Box-page/DeliveryManagement.vue')
      },
      {
        path: 'collectMaterialsApplication',
        name: 'collectMaterialsApplication',
        meta: {
          title: '领料申请'
        },
        component: () => import('../../page/Box-page/CollectMaterialsApplication.vue')
      },
      {
        path: 'warehouseAllocation',
        name: 'warehouseAllocation',
        meta: {
          title: '仓库调拨'
        },
        component: () => import('../../page/Box-page/WarehouseAllocation.vue')
      },
      {
        path: 'labelPrinting',
        name: 'labelPrinting',
        meta: {
          title: '标签打印'
        },
        component: () => import('../../page/Box-page/LabelPrinting.vue')
      },
      {
        path: 'inventoryCount',
        name: 'inventoryCount',
        meta: {
          title: '库存盘点'
        },
        component: () => import('../../page/Box-page/InventoryCount.vue')
      },
      {
        path: 'inventoryWarning',
        name: 'inventoryWarning',
        meta: {
          title: '库存预警'
        },
        component: () => import('../../page/Box-page/InventoryWarning.vue')
      },
      {
        path: 'boxBasicSet',
        name: 'boxBasicSet',
        meta: {
          title: '基础设置'
        },
        component: () => import('../../page/Box-page/BasicSet/BoxBasicSetIndex.vue'),
        children: [
          {
            path: 'warehouseManagement',
            name: 'warehouseManagement',
            meta: {
              title: '仓库管理'
            },
            component: () => import('../../page/Box-page/BasicSet/WarehouseManagement.vue')
          },
          {
            path: 'areaSet',
            name: 'areaSet',
            meta: {
              title: '区域管理'
            },
            component: () => import('../../page/Box-page/BasicSet/AreaSet.vue')
          },
          {
            path: 'materialData',
            name: 'materialData',
            meta: {
              title: '物品资料'
            },
            component: () => import('../../page/Box-page/BasicSet/MaterialData.vue')
          }
        ]
      }
    ]
  }
]
